jQuery(document).ready(function($){
	$('.menu-item-889').hover(function() { 
		$('.pane-views-mucho-menu-block-block-9').show(); 
		$('.pane-views-mucho-menu-block-block-10').hide();
		$('.pane-views-mucho-menu-block-block-11').hide();
	});
	
	$('.menu-item-896').hover(function() { 
		$('.pane-views-mucho-menu-block-block-10').show(); 
		$('.pane-views-mucho-menu-block-block-9').hide();
		$('.pane-views-mucho-menu-block-block-11').hide();
	});
	
	$('.menu-item-893').hover(function() { 
		$('.pane-views-mucho-menu-block-block-11').show(); 
		$('.pane-views-mucho-menu-block-block-9').hide();
		$('.pane-views-mucho-menu-block-block-10').hide();
	});

	
	
	$('.menu-item-838').hover(function() { 
		$('.pane-views-mucho-menu-block-block-8').show(); 
		$('.pane-views-mucho-menu-block-block-7').hide();
		$('.pane-views-mucho-menu-block-block-12').hide();
		$('.pane-views-mucho-menu-block-block-25').hide();
	});
	$('.menu-item-839').hover(function() { 
		$('.pane-views-mucho-menu-block-block-7').show(); 
		$('.pane-views-mucho-menu-block-block-8').hide(); 
		$('.pane-views-mucho-menu-block-block-12').hide();
		$('.pane-views-mucho-menu-block-block-25').hide();
	});
	$('.menu-item-895').hover(function() { 
		$('.pane-views-mucho-menu-block-block-12').show(); 
		$('.pane-views-mucho-menu-block-block-7').hide();
		$('.pane-views-mucho-menu-block-block-8').hide();
		$('.pane-views-mucho-menu-block-block-25').hide();
	});
	$('.menu-item-1015').hover(function() { 
		$('.pane-views-mucho-menu-block-block-25').show();
		$('.pane-views-mucho-menu-block-block-12').hide();
		$('.pane-views-mucho-menu-block-block-7').hide();
		$('.pane-views-mucho-menu-block-block-8').hide();
	});
	
	
	
	$('.menu-item-1138').hover(function() { 
		$('.pane-views-mucho-menu-block-block-5').show(); 
		$('.pane-views-mucho-menu-block-block-28').hide();
		$('.pane-views-mucho-menu-block-block-15').hide();
		$('.pane-views-mucho-menu-block-block-29').hide();
	});
	$('.menu-item-900').hover(function() { 
		$('.pane-views-mucho-menu-block-block-28').show(); 
		$('.pane-views-mucho-menu-block-block-5').hide();
		$('.pane-views-mucho-menu-block-block-15').hide();
		$('.pane-views-mucho-menu-block-block-29').hide();
	});
	$('.menu-item-902').hover(function() { 
		$('.pane-views-mucho-menu-block-block-15').show(); 
		$('.pane-views-mucho-menu-block-block-5').hide();
		$('.pane-views-mucho-menu-block-block-28').hide();
		$('.pane-views-mucho-menu-block-block-29').hide();
	});
	$('.menu-item-1150').hover(function() { 
		$('.pane-views-mucho-menu-block-block-29').show(); 
		$('.pane-views-mucho-menu-block-block-5').hide();
		$('.pane-views-mucho-menu-block-block-28').hide();
		$('.pane-views-mucho-menu-block-block-15').hide();
	});
	
	
	
	$('.menu-item-918').hover(function() { 
		$('.pane-views-mucho-menu-block-block-19').show(); 
		$('.pane-views-mucho-menu-block-block-23').hide();
		$('.pane-views-mucho-menu-block-block-20').hide();
		$('.pane-views-mucho-menu-block-block-24').hide();
		$('.pane-views-mucho-menu-block-block-21').hide();
	});
	$('.menu-item-994').hover(function() { 
		$('.pane-views-mucho-menu-block-block-23').show(); 
		$('.pane-views-mucho-menu-block-block-19').hide();
		$('.pane-views-mucho-menu-block-block-20').hide();
		$('.pane-views-mucho-menu-block-block-24').hide();
		$('.pane-views-mucho-menu-block-block-21').hide();
	});
	$('.menu-item-920').hover(function() { 
		$('.pane-views-mucho-menu-block-block-20').show(); 
		$('.pane-views-mucho-menu-block-block-19').hide();
		$('.pane-views-mucho-menu-block-block-23').hide();
		$('.pane-views-mucho-menu-block-block-24').hide();
		$('.pane-views-mucho-menu-block-block-21').hide();
	});
	$('.menu-item-996').hover(function() { 
		$('.pane-views-mucho-menu-block-block-24').show(); 
		$('.pane-views-mucho-menu-block-block-19').hide();
		$('.pane-views-mucho-menu-block-block-20').hide();
		$('.pane-views-mucho-menu-block-block-23').hide();
		$('.pane-views-mucho-menu-block-block-21').hide();
	});
	$('.menu-item-922').hover(function() { 
		$('.pane-views-mucho-menu-block-block-21').show(); 
		$('.pane-views-mucho-menu-block-block-19').hide();
		$('.pane-views-mucho-menu-block-block-20').hide();
		$('.pane-views-mucho-menu-block-block-23').hide();
		$('.pane-views-mucho-menu-block-block-24').hide();
	});
	$('.menu-item-922').hover(function() { 
		$('.pane-views-mucho-menu-block-block-21').show(); 
		$('.pane-views-mucho-menu-block-block-19').hide();
		$('.pane-views-mucho-menu-block-block-20').hide();
		$('.pane-views-mucho-menu-block-block-23').hide();
		$('.pane-views-mucho-menu-block-block-24').hide();
	});
	
	
	
	
	var menu = $('#block-muchomenu-1');

	$(".menu-icon").click(function(){
		if(menu.hasClass('mobile-menu')) {
		menu.removeClass('mobile-menu');
		$(menu).animate({
		left: "-300"
		}, 500);
	}
	else {
	menu.addClass('mobile-menu');
		$(menu).animate({
		left: "0"
		}, 500);
		}
	});
	
	
	/*var open = $('#block-search-form');

	$(".sb-search").click(function(){
		if(open.hasClass('click-search')) {
		open.removeClass('click-search');
		$('#search-block-form').hide();
	}
	else {
	open.addClass('click-search');
		$('#search-block-form').show();
	});
	});*/
	
	$("#search-button-to-open").toggle(function() {
    $("#search-form-to-display").show();
  }, function() {
    $("#search-form-to-display").hide();
  });
	
	/*$("#block-search-form").hover(function() {
    $("#search-block-form").show();        
  }, function() {
    $("#search-block-form").hide();
  });*/
	
	
	
	/*var target = $('#block-search-form');
	var form = $('#search-block-form');
	target.click(function() {
		
		if(form.hasClass('search-show')) {
			form.removeClass('search-show');
			} else {
				target.addClass('search-show');
			form.show();
		};
	});
	
	$(document).click(function(event) {
    if ( !$(event.target).hasClass('search-show')) {
         form.hide();
    }
	});*/

	/* navbar on scroll functionality */
	$( window ).scroll(function() {
		var topValue = $( window ).scrollTop();
		if (topValue >=40) {
			$('#leaderboard-wrapper, #header-wrapper').addClass('on-scroll');
		} else {
			$('#leaderboard-wrapper, #header-wrapper').removeClass('on-scroll');
		}
	});
	
	
	
	
	

	/*Centering masonry layout using the isFitWidth parameter:
			//Option 1
			$('.view-content').masonry({ isFitWidth: true });
	*/
});

